package com.zhu.oj.service.adapter;

import com.zhu.oj.model.vo.EcharsVo;

public class EcharsAdapter {
    public static EcharsVo buildEcharsVo(String username, Long totalSubmit, Long totalAccept, Long simpleNumber, Long mediaNumber, Long diffNumber) {

        return EcharsVo.builder()
                .username(username)
                .submitNumber(totalSubmit)
                .acceptNumber(totalAccept)
                .simpleNumber(simpleNumber)
                .mediaNumber(mediaNumber)
                .diffNumber(diffNumber)
                .build();
    }
}
